Function reference |
Arrange a single element inside a standard panel
obj
= uix.Panel(
)
uipanel
object but with automatic management
of the contained widget or layout. The properties available are largely
the same as the builtin uipanel
object. Where more than one child is
added, the currently visible child is determined using the Selection property.obj
= uix.Panel(
prop
,
value
,
...
)
Property | Value | Description |
---|---|---|
BackgroundColor | colorspec | |
BeingDeleted | ||
BorderType | ||
BorderWidth | ||
Contents | ||
DeleteFcn | function_handle | |
FontAngle | ||
FontName | ||
FontSize | ||
FontUnits | ||
FontWeight | ||
ForegroundColor | colorspec | |
HighlightColor | colorspec | |
Padding | ||
Parent | ||
Position | ||
Selection | ||
ShadowColor | colorspec | |
Tag | ||
Title | ||
TitlePosition | ||
Type | ||
Units | ||
Visible |
f =figure
(); p =uix.Panel
('Parent'
, f,'Title'
,'A Panel'
,'Padding'
, 5 );uicontrol
('Parent'
, p,'Background'
,'r'
)
f =figure
(); p =uix.Panel
('Parent'
, f,'Title'
,'A Panel'
,'TitlePosition'
, 'CenterTop'); b =uix.HBox
('Parent'
, p,'Spacing'
, 5,'Padding'
, 5 );uicontrol
( 'Style', 'listbox','Parent'
, b,'String'
, {'Item 1'
,'Item 2'
} );uicontrol
('Parent'
, b,'Background'
,'b'
);set
( b,'Widths'
, [100 -1] );
uix.BoxPanel
- for creating a more boxy paneluix.TabPanel
- for a panel with tabs for selecting the visible childuix.HBox
- for creating a horizontal arrangement within a panelFunction reference | [Top] | uix.CardPanel |